package com.itheima.mall.pojo;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 商品评价表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("pms_comment")
public class Comment {

    private Long id;
    private Long productId;
    private String memberNickName;
    private String productName;
    private Integer star;           //评价星数：0->5
    private String memberIp;        //评价的ip
    private DateTime createTime;
    private Integer showStatus;
    private String productAttribute;    //购买时的商品属性
    private Integer collectCouont;
    private Integer readCount;
    private String content;
    private String pics;                //上传图片地址，以逗号隔开
    private String memberIcon;          //评论用户头像
    private Integer replayCount;
}